import Layout from '@/layout/Layout'

const userRouter = {
  path: '/user',
  component: Layout,
  redirect: 'noredirect',
  name: '个人中心',
  meta: {
    title: '个人中心',
    icon: 'fa-user-circle'
  },
  children: [
    {
      path: 'userAdviceManagement',
      component: () => import('@/views/user/UserAdviceManagement'),
      name: 'UserAdviceManagement',
      meta: { title: '投诉建议', cache: true}
    },
    {
      path: 'userHelpManagement',
      component: () => import('@/views/user/UserHelpManagement'),
      name: 'UserHelpManagement',
      meta: { title: '请求帮助', cache: true}
    },
    {
      path: 'userStudyManagement',
      component: () => import('@/views/user/UserStudyManagement'),
      name: 'UserStudyManagement',
      meta: { title: '我想学习', cache: true}
    },
    {
      path: 'companyAdviceManagement',
      component: () => import('@/views/user/CompanyAdviceManagement'),
      name: 'CompanyAdviceManagement',
      meta: { title: '意见反馈', cache: true}
    }

  ]
}

export default userRouter
